package com.gubei.subject.application.convert;

import com.gubei.subject.application.dto.SubjectAnswerDTO;
import com.gubei.subject.domain.entity.SubjectAnswerBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectAnswerDTOConverter {
     SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);

     SubjectAnswerDTO convertAnswerBoToAnswerDto(SubjectAnswerBO subjectAnswerBO);

     SubjectAnswerBO convertAnswerDtoToAnswerBo(SubjectAnswerDTO subjectAnswerDTO);

     List<SubjectAnswerBO> convertAnswerDtoListToAnswerBoList(List<SubjectAnswerDTO> subjectAnswerDTOList);

     List<SubjectAnswerDTO> convertAnswerBoListToAnswerDtoList(List<SubjectAnswerBO> subjectAnswerBOList);
}
